<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Title</title>
</head>
<body>
<div id="app">

<!--    <span @onclick="order()" >点击下单</span>-->
    <ol>
        <li  @click ="click()" >
            点击
        </li>
        <li  @click ="job_collect()" >
            job_collect
        </li>
        <li  @click ="cv_send()" >
            投简历
        </li>
        <li  @click ="cv_upload()" >
            上传简历
        </li>
    </ol>

</div>
</body>
<script>

    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!',
        },

        methods: {
            click: function () {
                console.log("action")
                let id = new Date().getTime()
                let data = {
                    "action": "click",
                    "userId": id,
                    "job_code":"test",
                    "act_time": new Date()
                }
                axios.post("http://192.168.172.133/kafka-log/click", data).then(function (response) {
                    console.log("action sucessful")
                }).catch(function (error) {
                    console.log(error);
                });

            },
            job_collect: function () {
                console.log("action")
                let id = new Date().getTime()
                let data = {
                    "action": "job_collect",
                    "userId": id,
                    "job_code":"test",
                    "act_time": new Date()
                }
                axios.post("http://192.168.172.133/kafka-log/job_collect", data).then(function (response) {
                    console.log("action sucessful")
                }).catch(function (error) {
                    console.log(error);
                });

            },
            cv_send: function () {
                console.log("action")
                let id = new Date().getTime()
                let data = {
                    "action": "cv_send",
                    "userId": id,
                    "job_code":"test",
                    "act_time": new Date()
                }
                axios.post("http://192.168.172.133/kafka-log/cv_send", data).then(function (response) {
                    console.log("action sucessful")
                }).catch(function (error) {
                    console.log(error);
                });

            },
            cv_upload: function () {
                console.log("action")
                let id = new Date().getTime()
                let data = {
                    "action": "cv_upload",
                    "userId": id,
                    "job_code":"test",
                    "act_time": new Date()
                }
                axios.post("http://192.168.172.133/kafka-log/cv_upload", data).then(function (response) {
                    console.log("action sucessful")
                }).catch(function (error) {
                    console.log(error);
                });

            },


        }

    })

</script>
</html>